from flask import Flask, request, make_response, redirect, abort, render_template

app = Flask(__name__)

@app.route('/books/')
def books():
    books = [
        {
            'name': u'西游记',
            'author': u'吴承恩',
            'price': 109
        },
        {
            'name': u'红楼梦',
            'author': u'曹雪芹',
            'price': 200
        },
        {
            'name': u'三国演义',
            'author': u'施耐庵',
            'price': 130
        }
    ]
    return render_template('book.html',_books=books)

if __name__ == '__main__':
    app.run(debug=True)